package com.feng.service;

import java.util.List;

import com.feng.model.Users;

public interface UserService {
	/**
	 * 根据用户代码查询用户信息
	 * @param usercode
	 * @return  Users
	 * @throws Exception
	 */
     public Users findUserByCode(String usercode) throws Exception;
   
     /**
      * 根据用户查询用户信息
      * @param user
      * @return
      * @throws Exception
      */
     public List<Users> findUsers(Users user) throws Exception;
     
     /**
      * 保存用户
      * @param user
      * @throws Exception
      */
     public void saveUser(Users user) throws Exception;
     
     /**
      * 修改用户
      * @param user
      * @throws Exception
      */
     public void updateUser(Users user) throws Exception;
     /**
      * 删除用户
      * @throws Exception
      */
     public void delUser(Users user) throws Exception;
}
